package com.example.netcomponent.net;

/**
 * Created by zengxianghui900 on 17/9/30.
 * 回调数据统一封装类，根据各自数据结构进行修改配置
 */

public class BaseResultEntity<T> {


    /**
     * result : {"resultCode":"Y","resultMessage":"登录成功"}
     * data : {"userId":"FUZHULI229","userName":"付助力"}
     */

//    private ResultBean result;
    private String code;
    private String msg;

    private T data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }




//    public ResultBean getResult() {
//        return result;
//    }
//
//    public void setResult(ResultBean result) {
//        this.result = result;
//    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

//    public static class ResultBean {
//        /**
//         * code : "000000"
//         * msg : 登录成功
//         */
//
//        private String code;
//        private String msg;
//
//        public String getCode() {
//            return code;
//        }
//
//        public void setCode(String code) {
//            this.code = code;
//        }
//    }




}
